export interface itemData {
  itemId: string
  image: string
  product: {
    productId: string
    name: string
    category: string
  }
  attribute1: string
  listPrice: string
}
export interface productData {
  productId: string
  categoryId: string
  image: string
  name: string
  description: string
  info?: string
}

export interface cartData {
  userId: string
  quantity: number
  inStock: number
  itemDTO: itemData
}

export interface commentData {
  userId: string
  commenttext: string
  itemId: string
  picture: string
  num: number
}
export interface requestCommentData {
  userId: string
  commenttext: string
  itemId: string
  num: number
}
export interface addCartData {
  userid: string
  itemid: string
  quantity: number
}
export interface deleteCartData {
  userid: string
  itemid: string
}
export interface updateCartData {
  userid: string
  itemid: string
  quantity: number
}
export interface postItemData {
  itemId: string
  quantity: number
  listprice: string
}

export interface orderResponseData {
  orderId: number
  userid: string
  orderDate: string
  shipAddress1: string
  status: number
  phoneNum: string
  zip: string
  shipstate: string
  shipcity: string
  items: itemData[]
}
export type categoryResponseData = ApiResponseData<{
  list: itemData[]
  total: number
}>
